package com.lhkj.ct.wechat.base.model.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
  * <p>
  *     描述：
  * </p>
  */
public class PatientBindDto implements Serializable {

    @NotBlank(message = "手机号不能为空",groups = {Mobile.class})
    @Pattern(regexp = "^(1)\\d{10}$", message = "手机号码格式不正确",groups = {Mobile.class})
    @ApiModelProperty(value = "手机号")
    private String patMobile;

    @NotBlank(message = "邮箱不能为空",groups = {Email.class})
    @javax.validation.constraints.Email(message = "邮箱格式不合法", regexp = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}$",groups = {Email.class})
    @ApiModelProperty(value = "邮箱")
    private String patEmail;

    public String getPatMobile() {
        return patMobile;
    }

    public void setPatMobile(String patMobile) {
        this.patMobile = patMobile;
    }

    public String getPatEmail() {
        return patEmail;
    }

    public void setPatEmail(String patEmail) {
        this.patEmail = patEmail;
    }

    public interface Email {

    }

    public interface Mobile {

    }
}
